<?php
    $xtpl_success   = new XTemplate("view/member/success.htm");
    
    if(READ_SESSION('member')){
        $sql    = "SELECT * FROM member WHERE username='" . READ_SESSION('member') . "'";
        $result = mysql_query($sql);
        $row    = mysql_fetch_array($result);
        $xtpl_success   -> assign('username', $row['username']);
    }
    
    $xtpl_success   -> parse("SUCCESS");
    $mid            = $xtpl_success -> text("SUCCESS");
?>